package com.zzr.zzrbackend.pojo.dto.result;

import lombok.Data;

import java.util.Objects;

@Data
public class PostResult {

    private Integer disabuseId;

    private Integer type;

    private Integer solveType;

    private Integer isNowSolve;

    private Integer isFinish;

    private Long time;

    private String name;

    @Override
    public boolean equals(Object object){
        if(object == null){
            return false;
        }
        if(this == object) return true;
        if(object instanceof PostResult){
            PostResult postResult = (PostResult) object;
            if(postResult.type == this.type && postResult.solveType == this.solveType
               && postResult.isNowSolve == this.isNowSolve && postResult.isFinish == this.isFinish
            )
                return true;
        }
        return false;
    }
    @Override
    public int hashCode(){
        return Objects.hash(type,solveType,isNowSolve,isFinish);
    }

}
